<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.2"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>轮回之牢: BaseSceneUi类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">轮回之牢<span id="projectnumber">&#160;0.0.1</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.2 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-slots">Public 槽</a> &#124;
<a href="#signals">信号</a> &#124;
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="class_base_scene_ui-members.html">所有成员列表</a>  </div>
  <div class="headertitle"><div class="title">BaseSceneUi类 参考</div></div>
</div><!--header-->
<div class="contents">

<p>主场景前端  
 <a href="class_base_scene_ui.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="_base_scene_ui_8h_source.html">BaseSceneUi.h</a>&gt;</code></p>
<div class="dynheader">
类 BaseSceneUi 继承关系图:</div>
<div class="dyncontent">
<div class="center"><img src="class_base_scene_ui__inherit__graph.png" border="0" usemap="#a_base_scene_ui_inherit__map" alt="Inheritance graph"/></div>
<map name="a_base_scene_ui_inherit__map" id="a_base_scene_ui_inherit__map">
<area shape="rect" title="主场景前端" alt="" coords="99,80,201,107"/>
<area shape="rect" title=" " alt="" coords="5,5,127,32"/>
<area shape="rect" title=" " alt="" coords="151,5,319,32"/>
</map>
<center><span class="legend">[<a href="graph_legend.html">图例</a>]</span></center></div>
<div class="dynheader">
BaseSceneUi 的协作图:</div>
<div class="dyncontent">
<div class="center"><img src="class_base_scene_ui__coll__graph.png" border="0" usemap="#a_base_scene_ui_coll__map" alt="Collaboration graph"/></div>
<map name="a_base_scene_ui_coll__map" id="a_base_scene_ui_coll__map">
<area shape="rect" title="主场景前端" alt="" coords="99,80,201,107"/>
<area shape="rect" title=" " alt="" coords="5,5,127,32"/>
<area shape="rect" title=" " alt="" coords="151,5,319,32"/>
</map>
<center><span class="legend">[<a href="graph_legend.html">图例</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-slots" name="pub-slots"></a>
Public 槽</h2></td></tr>
<tr class="memitem:a042918e51db48c88e9fcd2dc1e1318dc"><td class="memItemLeft" align="right" valign="top"><a id="a042918e51db48c88e9fcd2dc1e1318dc" name="a042918e51db48c88e9fcd2dc1e1318dc"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>clearFloatText</b> ()</td></tr>
<tr class="memdesc:a042918e51db48c88e9fcd2dc1e1318dc"><td class="mdescLeft">&#160;</td><td class="mdescRight">清除悬浮文字 <br /></td></tr>
<tr class="separator:a042918e51db48c88e9fcd2dc1e1318dc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a43dd94fb44be28fbde58e7d9614b5900"><td class="memItemLeft" align="right" valign="top"><a id="a43dd94fb44be28fbde58e7d9614b5900" name="a43dd94fb44be28fbde58e7d9614b5900"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>continueGame</b> ()</td></tr>
<tr class="memdesc:a43dd94fb44be28fbde58e7d9614b5900"><td class="mdescLeft">&#160;</td><td class="mdescRight">继续游戏 <br /></td></tr>
<tr class="separator:a43dd94fb44be28fbde58e7d9614b5900"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac5b5974fb1dd35155932791c888f04d9"><td class="memItemLeft" align="right" valign="top"><a id="ac5b5974fb1dd35155932791c888f04d9" name="ac5b5974fb1dd35155932791c888f04d9"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>start</b> ()</td></tr>
<tr class="memdesc:ac5b5974fb1dd35155932791c888f04d9"><td class="mdescLeft">&#160;</td><td class="mdescRight">开始游戏 <br /></td></tr>
<tr class="separator:ac5b5974fb1dd35155932791c888f04d9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a72db41dbc5e44c38f198392e158be5e0"><td class="memItemLeft" align="right" valign="top"><a id="a72db41dbc5e44c38f198392e158be5e0" name="a72db41dbc5e44c38f198392e158be5e0"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>victory</b> ()</td></tr>
<tr class="memdesc:a72db41dbc5e44c38f198392e158be5e0"><td class="mdescLeft">&#160;</td><td class="mdescRight">游戏胜利 <br /></td></tr>
<tr class="separator:a72db41dbc5e44c38f198392e158be5e0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af4f027136d896c7f0dc2e78ba22140fe"><td class="memItemLeft" align="right" valign="top"><a id="af4f027136d896c7f0dc2e78ba22140fe" name="af4f027136d896c7f0dc2e78ba22140fe"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>exit</b> ()</td></tr>
<tr class="memdesc:af4f027136d896c7f0dc2e78ba22140fe"><td class="mdescLeft">&#160;</td><td class="mdescRight">退出游戏 <br /></td></tr>
<tr class="separator:af4f027136d896c7f0dc2e78ba22140fe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a196e56d1078cb5ab19f710f40ee3ab42"><td class="memItemLeft" align="right" valign="top"><a id="a196e56d1078cb5ab19f710f40ee3ab42" name="a196e56d1078cb5ab19f710f40ee3ab42"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>newGame</b> ()</td></tr>
<tr class="memdesc:a196e56d1078cb5ab19f710f40ee3ab42"><td class="mdescLeft">&#160;</td><td class="mdescRight">创建新游戏，需要调用开始游戏才能开始 <br /></td></tr>
<tr class="separator:a196e56d1078cb5ab19f710f40ee3ab42"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="signals" name="signals"></a>
信号</h2></td></tr>
<tr class="memitem:a6e5ebbbba0a011cab845f86b507cc7c9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_base_scene_ui.html#a6e5ebbbba0a011cab845f86b507cc7c9">KeyEscPressed</a> (uint64_t, int death_times)</td></tr>
<tr class="memdesc:a6e5ebbbba0a011cab845f86b507cc7c9"><td class="mdescLeft">&#160;</td><td class="mdescRight">esc按下发出的信号  <a href="class_base_scene_ui.html#a6e5ebbbba0a011cab845f86b507cc7c9">更多...</a><br /></td></tr>
<tr class="separator:a6e5ebbbba0a011cab845f86b507cc7c9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4dd23749b3b015e663397291b7ab3a7f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_base_scene_ui.html#a4dd23749b3b015e663397291b7ab3a7f">VictoryGame</a> (uint64_t, int death_times)</td></tr>
<tr class="memdesc:a4dd23749b3b015e663397291b7ab3a7f"><td class="mdescLeft">&#160;</td><td class="mdescRight">游戏胜利发出的信号  <a href="class_base_scene_ui.html#a4dd23749b3b015e663397291b7ab3a7f">更多...</a><br /></td></tr>
<tr class="separator:a4dd23749b3b015e663397291b7ab3a7f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a4f58bbcb1a972cf149ffcd58fd1c19c9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_base_scene_ui.html#a4f58bbcb1a972cf149ffcd58fd1c19c9">showFloatText</a> (const QString &amp;text)</td></tr>
<tr class="memdesc:a4f58bbcb1a972cf149ffcd58fd1c19c9"><td class="mdescLeft">&#160;</td><td class="mdescRight">显示悬浮文字  <a href="class_base_scene_ui.html#a4f58bbcb1a972cf149ffcd58fd1c19c9">更多...</a><br /></td></tr>
<tr class="separator:a4f58bbcb1a972cf149ffcd58fd1c19c9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a53a448f815e0a35ef791c0cff7305003"><td class="memItemLeft" align="right" valign="top"><a id="a53a448f815e0a35ef791c0cff7305003" name="a53a448f815e0a35ef791c0cff7305003"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>keyPressEvent</b> (QKeyEvent *event) override</td></tr>
<tr class="separator:a53a448f815e0a35ef791c0cff7305003"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a91cbdbf2d27eaff7ad024d469e81b9bc"><td class="memItemLeft" align="right" valign="top"><a id="a91cbdbf2d27eaff7ad024d469e81b9bc" name="a91cbdbf2d27eaff7ad024d469e81b9bc"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>keyReleaseEvent</b> (QKeyEvent *event) override</td></tr>
<tr class="separator:a91cbdbf2d27eaff7ad024d469e81b9bc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a05198807ad4b691ac6c55230c3bd7933"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_base_scene_ui.html#a05198807ad4b691ac6c55230c3bd7933">initializeGL</a> () override</td></tr>
<tr class="memdesc:a05198807ad4b691ac6c55230c3bd7933"><td class="mdescLeft">&#160;</td><td class="mdescRight">实现的父类的虚函数 初始化opengl的资源  <a href="class_base_scene_ui.html#a05198807ad4b691ac6c55230c3bd7933">更多...</a><br /></td></tr>
<tr class="separator:a05198807ad4b691ac6c55230c3bd7933"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a65196ccc7c839098f44a7dcb7d3ce966"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_base_scene_ui.html#a65196ccc7c839098f44a7dcb7d3ce966">resizeGL</a> (int width_, int height_) override</td></tr>
<tr class="memdesc:a65196ccc7c839098f44a7dcb7d3ce966"><td class="mdescLeft">&#160;</td><td class="mdescRight">窗口大小改变时触发，必须实现的虚函数  <a href="class_base_scene_ui.html#a65196ccc7c839098f44a7dcb7d3ce966">更多...</a><br /></td></tr>
<tr class="separator:a65196ccc7c839098f44a7dcb7d3ce966"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6bfaa16346cd5e7f855448f296687d05"><td class="memItemLeft" align="right" valign="top"><a id="a6bfaa16346cd5e7f855448f296687d05" name="a6bfaa16346cd5e7f855448f296687d05"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>paintGL</b> () override</td></tr>
<tr class="memdesc:a6bfaa16346cd5e7f855448f296687d05"><td class="mdescLeft">&#160;</td><td class="mdescRight">渲染场景，更新界面时调用 <br /></td></tr>
<tr class="separator:a6bfaa16346cd5e7f855448f296687d05"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p >主场景前端 </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a05198807ad4b691ac6c55230c3bd7933" name="a05198807ad4b691ac6c55230c3bd7933"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a05198807ad4b691ac6c55230c3bd7933">&#9670;&nbsp;</a></span>initializeGL()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void BaseSceneUi::initializeGL </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>实现的父类的虚函数 初始化opengl的资源 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="a6e5ebbbba0a011cab845f86b507cc7c9" name="a6e5ebbbba0a011cab845f86b507cc7c9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6e5ebbbba0a011cab845f86b507cc7c9">&#9670;&nbsp;</a></span>KeyEscPressed</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void BaseSceneUi::KeyEscPressed </td>
          <td>(</td>
          <td class="paramtype">uint64_t&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>death_times</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">signal</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>esc按下发出的信号 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">death_times</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a65196ccc7c839098f44a7dcb7d3ce966" name="a65196ccc7c839098f44a7dcb7d3ce966"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a65196ccc7c839098f44a7dcb7d3ce966">&#9670;&nbsp;</a></span>resizeGL()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void BaseSceneUi::resizeGL </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>width_</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>height_</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>窗口大小改变时触发，必须实现的虚函数 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">width_</td><td></td></tr>
    <tr><td class="paramname">height_</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a4f58bbcb1a972cf149ffcd58fd1c19c9" name="a4f58bbcb1a972cf149ffcd58fd1c19c9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4f58bbcb1a972cf149ffcd58fd1c19c9">&#9670;&nbsp;</a></span>showFloatText()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void BaseSceneUi::showFloatText </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&#160;</td>
          <td class="paramname"><em>text</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>显示悬浮文字 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">text</td><td></td></tr>
  </table>
  </dd>
</dl>
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="class_base_scene_ui_a4f58bbcb1a972cf149ffcd58fd1c19c9_cgraph.png" border="0" usemap="#aclass_base_scene_ui_a4f58bbcb1a972cf149ffcd58fd1c19c9_cgraph" alt=""/></div>
<map name="aclass_base_scene_ui_a4f58bbcb1a972cf149ffcd58fd1c19c9_cgraph" id="aclass_base_scene_ui_a4f58bbcb1a972cf149ffcd58fd1c19c9_cgraph">
<area shape="rect" title="显示悬浮文字" alt="" coords="5,5,199,32"/>
<area shape="rect" href="class_base_scene_ui.html#a042918e51db48c88e9fcd2dc1e1318dc" title="清除悬浮文字" alt="" coords="247,5,437,32"/>
</map>
</div>

</div>
</div>
<a id="a4dd23749b3b015e663397291b7ab3a7f" name="a4dd23749b3b015e663397291b7ab3a7f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4dd23749b3b015e663397291b7ab3a7f">&#9670;&nbsp;</a></span>VictoryGame</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void BaseSceneUi::VictoryGame </td>
          <td>(</td>
          <td class="paramtype">uint64_t&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>death_times</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">signal</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>游戏胜利发出的信号 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">death_times</td><td></td></tr>
  </table>
  </dd>
</dl>
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="class_base_scene_ui_a4dd23749b3b015e663397291b7ab3a7f_icgraph.png" border="0" usemap="#aclass_base_scene_ui_a4dd23749b3b015e663397291b7ab3a7f_icgraph" alt=""/></div>
<map name="aclass_base_scene_ui_a4dd23749b3b015e663397291b7ab3a7f_icgraph" id="aclass_base_scene_ui_a4dd23749b3b015e663397291b7ab3a7f_icgraph">
<area shape="rect" title="游戏胜利发出的信号" alt="" coords="833,31,1019,57"/>
<area shape="rect" href="class_base_scene_ui.html#a72db41dbc5e44c38f198392e158be5e0" title="游戏胜利" alt="" coords="639,31,785,57"/>
<area shape="rect" href="class_base_scene.html#ae18694318eacca974fba5f4005bf44cf" title="刷新场景" alt="" coords="417,31,591,57"/>
<area shape="rect" href="class_base_scene.html#a889d8e409b748d9af28dd0d547801bb9" title="启动游戏" alt="" coords="247,31,369,57"/>
<area shape="rect" href="class_base_scene_ui.html#a43dd94fb44be28fbde58e7d9614b5900" title="继续游戏" alt="" coords="5,5,199,32"/>
<area shape="rect" href="class_base_scene_ui.html#ac5b5974fb1dd35155932791c888f04d9" title="开始游戏" alt="" coords="35,56,169,83"/>
</map>
</div>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>D:/Code/cProgram/CPP/Qt/TeamCurriculumDesign/Ui/Scenes/<a class="el" href="_base_scene_ui_8h_source.html">BaseSceneUi.h</a></li>
<li>D:/Code/cProgram/CPP/Qt/TeamCurriculumDesign/Ui/Scenes/BaseSceneUi.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.2
</small></address>
</body>
</html>
